﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using PictureManager.Web.MyServ;
public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnToJSONString_Click(object sender, EventArgs e)
    {
        WebServiceSoapClient MyWebServ = new WebServiceSoapClient();
        ArrayOfString arrayString = new ArrayOfString();
        arrayString.AddRange(txtInfo.Text.Split(','));
        string employeeJSON = MyWebServ.ToJSONString(Int32.Parse(txtID.Text), txtName.Text, arrayString);
        txtJSON.Text = employeeJSON;
    }
    protected void btnToStrEmployee_Click(object sender, EventArgs e)
    {
        WebServiceSoapClient MyWevServ = new WebServiceSoapClient();
        string strEmployee = MyWevServ.ToStrEmployee(txtJSON.Text);
        txtStrEmployee.Text = strEmployee;
    }
}
